package com.guslegend.service;

import com.guslegend.model.AddressDO;
import com.guslegend.request.AddressAddRequest;
import com.guslegend.vo.AddressVO;

/**
 * @author: guslegend
 * @description: 公司收发货地址表
 * @create: 2025-05-24 08:41
 **/
public interface AddressService {

    /**
     * 地址详情
     * @param id
     * @return
     */
    AddressVO detail(long id);

    /**
     * 新增地址
     * @param addressAddRequest
     * @return
     */
    int saveAddress(AddressAddRequest addressAddRequest);

    /**
     * 删除地址
     * @param addressId
     * @return
     */
    int delete(long addressId);

    /**
     * 获取用户所有的收货地址
     * @return
     */
    Object getAddressList();
}
